package net.lzzy.carmax;

import java.io.Serializable;
public class CarData implements Serializable {
  private String carId;
  private String typeCar;
  private String date;
  private int sumKM;
  private int minute;

  public CarData() {
  }

  public CarData(String carId, String typeCar, String date, int sumKM, int minute) {
    this.carId = carId;
    this.typeCar = typeCar;
    this.date = date;
    this.sumKM = sumKM;
    this.minute = minute;
  }

  public String getCarId() {
    return carId;
  }

  public void setCarId(String carId) {
    this.carId = carId;
  }

  public String getTypeCar() {
    return typeCar;
  }

  public void setTypeCar(String typeCar) {
    this.typeCar = typeCar;
  }

  public String getDate() {
    return date;
  }

  public void setDate(String date) {
    this.date = date;
  }

  public int getSumKM() {
    return sumKM;
  }

  public void setSumKM(int sumKM) {
    this.sumKM = sumKM;
  }

  public int getMinute() {
    return minute;
  }

  public void setMinute(int minute) {
    this.minute = minute;
  }

  @Override
  public String toString() {
    return "CarData{" +
            "carId='" + carId + '\'' +
            ", typeCar='" + typeCar + '\'' +
            ", date='" + date + '\'' +
            ", sumKM=" + sumKM +
            ", minute=" + minute +
            '}';
  }
}
